package com.qf.mes.controlller;

import com.qf.mes.common.PageParam;
import com.qf.mes.common.PageVO;
import com.qf.mes.common.UnitParam;
import com.qf.mes.entity.MdUnitMeasure;
import com.qf.mes.service.UnitService;
import com.qf.mes.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class UnitController {
    @Resource
    private UnitService unitService;
    @GetMapping("/unit")
    public R selectUnit(PageParam param, UnitParam unitParam){
       PageVO<MdUnitMeasure> unit = unitService.select(param,unitParam);
        return R.ok(unit);

    }
}
